#!/bin/sh
acc=`awk 'END {print NR}' /root/pcode/even_w.txt `
echo "acc is $acc"
for i in $acc ;
do
	echo $LINE > /root/pcode/result
	action=`cat /root/pcode/result | awk '{ printf $2}'`
	echo "action is $action"
	ld=`echo $action |awk -F "," '{printf $2}'`
	if [ "x$ld" = "xISDIR" ]; then
		echo "ld is $ld"
	fi
	laction=`echo $action |awk -F "," '{printf $1}'`
	echo "action $laction for dir"
	#[ "x$ld" = "x" ] && echo "ld is null"
	dir=`cat /root/pcode/result | awk '{ printf $1}'`
	echo "path is $dir"
	fofi=`cat /root/pcode/result | awk '{ printf $3}'`
	if [ "x$ld" = "xISDIR" ]; then
		echo "folder is $fofi"
	else
		echo "file is $fofi"
	fi


	sleep 5
done
